﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSFileController.Exceptions
{
    /// <summary>
    /// 当文件类型不符时抛出异常
    /// </summary>
    internal class FileTypeException:Exception
    {
        string type = "";

        public FileTypeException(string type)
        {
            this.type = type;
        }

        public override string ToString()
        {
            return "文件类型错误，需要 "+type+" 类型的文件";
        }
    }
}
